package jsqlite.JDBC2z;

import jsqlite.Callback;
import jsqlite.Database;
import jsqlite.Exception;
import jsqlite.TableResult;

/* compiled from: JDBCConnection.java */
/* loaded from: classes2.dex */
class DatabaseX extends Database {
    static Object lock = new Object();

    /* JADX INFO: Access modifiers changed from: package-private */
    public void wait(int i) {
        try {
            synchronized (lock) {
                lock.wait(i);
            }
        } catch (Exception unused) {
        }
    }

    @Override // jsqlite.Database
    public void exec(String str, Callback callback) throws Exception {
        super.exec(str, callback);
        synchronized (lock) {
            lock.notifyAll();
        }
    }

    @Override // jsqlite.Database
    public void exec(String str, Callback callback, String[] strArr) throws Exception {
        super.exec(str, callback, strArr);
        synchronized (lock) {
            lock.notifyAll();
        }
    }

    @Override // jsqlite.Database
    public TableResult get_table(String str, String[] strArr) throws Exception {
        TableResult tableResult = super.get_table(str, strArr);
        synchronized (lock) {
            lock.notifyAll();
        }
        return tableResult;
    }

    @Override // jsqlite.Database
    public void get_table(String str, String[] strArr, TableResult tableResult) throws Exception {
        super.get_table(str, strArr, tableResult);
        synchronized (lock) {
            lock.notifyAll();
        }
    }
}
